package com.cc.service.Impl;

import com.cc.dao.CarDao;
import com.cc.service.CarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service
public class CarServiceImpl implements CarService {
    CarDao carDao;

    @Autowired
    @Qualifier("userDao1")
    public void setCarDao(CarDao carDao) {
        this.carDao = carDao;
    }

    public void getCar() {
        carDao.getCar();
    }

    public void WantCar() {
        carDao.WantCar();
    }
}
